package org.project.single.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.project.single.pojo.po.SysDictType;
import org.project.single.pojo.ro.dict.DictTypeListRo;
import org.project.single.pojo.vo.dict.DictTypeListVo;

import java.util.List;

/**
 * @Entity org.project.single.pojo.po.SysDictType
 */
@Mapper
public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
    /**
     * 后台列表
     * @param dictTypeListRo
     * @return
     */
    List<DictTypeListVo> getDictTypeListBack(DictTypeListRo dictTypeListRo);

    @Select("select count(1) from sys_dict_type where code = #{code} limit 1")
    int existCode(@Param("code") String code);
}




